Skip to content

docs(memo): document memo_key per-parameter override#2000

Merged
georgeh0 merged 1 commit into
mainfrom
g/docs-memo-key
May 20, 2026
Merged

docs(memo): document memo_key per-parameter override#2000
georgeh0 merged 1 commit into
mainfrom
g/docs-memo-key

Conversation

@georgeh0
Copy link
Copy Markdown
Member

Summary

  • Document the memo_key= decorator argument added in Add per-argument memo_key support to @coco.fn #1888 as a new section in advanced_topics/memoization_keys.mdx, alongside the existing type-level customization paths (__coco_memo_key__, register_memo_key_function).
  • Cover callable vs None semantics, self / *args / **kwargs handling, decoration-time validation, and a "picking the right tool" tip.
  • Add a one-line pointer from the function programming guide's "Customizing data fingerprinting" subsection so users following the main guide find their way to the new section.

Test plan

  • CI (docs build).

Add a section to advanced_topics/memoization_keys.mdx covering the
`memo_key=` decorator argument added in #1888 — per-call-site
counterpart to the existing type-level customization mechanisms
(`__coco_memo_key__`, `register_memo_key_function`). Covers callable
vs `None` semantics, `self`/`*args`/`**kwargs` handling, and
decoration-time validation.

Add a pointer from the function programming guide's "Customizing
data fingerprinting" subsection so users following the main guide
find their way to the new section.
@georgeh0 georgeh0 merged commit 126d8e2 into main May 20, 2026
7 checks passed
@georgeh0 georgeh0 deleted the g/docs-memo-key branch May 20, 2026 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant